#include <stdlib.h>
#include <string.h>
#include "ofp_dev.h"
/********** 内部函数实现 **********/
/* 分配一个ofp_dev资源 */
ofp_dev * bio_dev_new(void)
{
    ofp_dev * dev;
    dev = malloc(sizeof(ofp_dev));
    if (dev != NULL)
        memset(dev, 0, sizeof(ofp_dev));
    return dev;
}

/* 释放ofp_dev资源 */
void bio_dev_free(ofp_dev * dev)
{
    if (dev != NULL) {
        free(dev);
        dev =NULL;
    }
}

